from enum import Enum

class UIStyle(str, Enum):
    COLOR_BLUE = "background-color:#6495ED;"
    COLOR_WHITE = "QLabel { color: white; }"
    CORNFLOWER_BLUE = "background-color: #6495ED;"
    WHITE_BG_BLUE_TEXT = "QPushButton { color: #6495ED;border-radius:5px;background-color:white; }"
    WHITE_BG = "background-color: #ffffff;"
    FONT_YAHEI = "微软雅黑"

class UILabel(str, Enum):
    TITLE_TEXT = "欢迎使用提取各种图片数据到Excel工具！"
    DISCERN_SOCIAL = "识别社保卡"
    DISCERN_DIVORCE = "识别离婚证"
    CONFIG_SETTING = "配置设置"
    SOCIAL_DIR = "社保卡图片目录"
    DIVORCE_DIR = "离婚证图片目录"
    RESULT_DIR = "结果目录"
    RUN_LOG = "运行日志"
    SOCIAL_SCHEDULE = "运行进度"
    SUBMIT = "提交"
    CLOSE = "关闭"
    CHOOSE = "选择"
    RESULT_TEXT = "结果"
    SAVE = "保存"
    SELECT_SOCIAL_DIR = "选择社保卡图片目录"
    SELECT_DIVORCE_DIR = "选择离婚证图片目录"
    SELECT_RESULT_DIR = "选择结果目录"
    BAIDU_API_KEY = "百度云api_key："
    BAIDU_SECRET_KEY = "百度云secret_key："

class ConfigKey(str, Enum):
    INPUT_PATH = "input_path"
    RESULT_PATH = "result_path"
    SOCIAL_PATH = "social_path"
    DIVORCE_PATH = "divorce_path"
    API_KEY = "api_key"
    SECRET_KEY = "secret_key"
    VALUE = "value"

class LogName(str, Enum):
    SOCIAL_LOG = "social_run_log"
    DIVORCE_LOG = "divorce_run_log"

class ProgressBarName(str, Enum):
    SOCIAL_BAR = "social_progress_bar"
    DIVORCE_BAR = "divorce_progress_bar"

class MsgText(str, Enum):
    SUCCESS_TITLE = "成功"
    SUCCESS_TEXT = "保存成功！"
    FAIL_TITLE = "警告"
    RESULT_UNSELECTED = "结果目录未选择！"
    SOCIAL_UNSET = "社保卡目录未设置！"
    DIVORCE_UNSET = "离婚证目录未设置！"
    CONFIG_UNSET = "配置信息未配置！"
    WRONG_TITLE = "错误"
    ALL_DONE = "全部已完成"
    WORK_DONE = "转换全部完成！"
    ERROR = "Error"

class SystemCmd(str, Enum):
    ORDER = "start explorer "
    KILL_EXCEL = "taskkill /IM EXCEL.exe /F"
    KILL_WPS = "taskkill /IM WPS.exe /F"

class ResourcePath(str, Enum):
    TITLE_IMAGE = "title.png"
    ICON = "logo.ico"
    CONFIG_JSON = "配置信息/sysConfig.json"


class ThreadMsg(str, Enum):
    CONVERSION_START = "配置数据获取完成，开始转换"
    CONVERSION_DONE = "转换已完成！"
    ALL_DONE = "处理全部已完成！"

class FileName(str, Enum):
    RESULT_EXCEL = "result.xlsx"